<?php include './application/views/common/shop_head.php'; ?>
<div class="mall_con">
  <?php include './application/views/shop/shop_left.php'; ?>
  <!--End con_l-->
  
  <div class="mall_con_r">
     <div class="position"><a href="/shop">首页</a>
         <?php for($i=count($parents)-1;$i>-1;$i--){?>
             >> <a href="/shop/arr.html?ptype=<?php echo $parents[$i]['id'];?>"><?php echo $parents[$i]['title'];?></a>
         <?php }?>
         >> <a href="/shop/arr.html?ptype=<?php echo $obj['id'];?>"><?php echo $obj['title'];?></a>
     </div>
     <div class="position">
         <?php foreach($child_list as $child){ ?>
            <a href="/shop/arr.html?ptype=<?php echo $child['id'];?>"><?php echo $child['title'].' ';?></a>
         <?php }?>
     </div>
     <div class="list_con">
		<?php foreach ($list as $val){?>
			<div class="pd_box">
				<a href="/shop/info/<?php echo $val['id'];?>.html"><img src="<?php echo $val['pimg'];?>" width="160" height="120"></a>
				<h3><a href="/shop/info/<?php echo $val['id'];?>.html"><?php echo $val['pname'];?></a></h3>
				<p>普通会员积分价：<span><?php echo $val['pcredit'];?></span></p>
				<p> VIP&nbsp;会员优惠价：<span><?php echo $val['pvipcredit'];?></span></p>
				<p style="color:#999">剩余：<span style="color:#999"><?php echo $val['psurp'];?></span>个</p> 
			 <div class="duihuan_bt"><a href="/shop/info/<?php echo $val['id'];?>.html"><img src="/static/images/bt-duihuan.png" width="56" height="26" /></a></div>
			</div>
		<?php }?>
       
       
     </div>
	 <div class="page">
        <?php echo $this->pagination->create_links();?>
       </div>
  </div>
  <!--End con_r-->
</div>
<!--End con-->
<?php include './application/views/common/footer.php'; ?>


